LDFLAGS = "-w -s -X main.BUILD_DATE=`date '+%Y-%m-%d_%I:%M:%S'` -X main.GitHash=`git rev-parse HEAD` -X main.VERSION=`git describe --tag --always`"

default:build

build:
	go build -ldflags ${LDFLAGS} -o rpcgateway

tar:build
	tar -cvf rpcgateway.tar.gz rpcgateway main.toml asserts html

clean:
	@rm -rf rpcgateway rpcgateway.tar.gz
